package com.yohann.designPattern.visitor;

/**
 * <p>
 * 成功
 * </p>
 *
 * @author Yohann
 * @since 2021/2/11 16:55
 */
public class Success extends Action {
    @Override
    public void getManResult(Man man) {
        System.out.println("man:success");
    }

    @Override
    public void getWomanResult(Woman woman) {
        System.out.println("woman:success");
    }
}